package com.atguigu.boot.bean;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * @author : leimingchao
 * @date Date : 2021年11月22日 21:10
 */
@Profile(value = "test")
@Data
@Component
@ConfigurationProperties(prefix = "person")
public class Worker implements Person {

    private String name;

    private Integer age;
}
